

package Clases;


import java.io.Serializable;
import java.sql.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name="Persona_id")
public class Artista extends Persona implements Serializable{
    private List songs;

    public Artista(int id, String name, String lastname, Date birthDate, String placeBirth, String picture, String imagen) {
    }

    public Artista() {
    }

    @OneToMany(mappedBy="artista")
    public List getsongs(){ return this.songs; }
    }
    

